﻿using System;

namespace csRebides
{
    class MyDict
        {
            public string key {get; private set;}
            public string value { get; private set; }
            public int number { get; private set; }

            public MyDict(string key, string value)
            {
                this.key = key;
                this.value = value;
            }

            public MyDict(string key, int number)
            {
                this.key = key;
                this.number = number;
            }

            public override bool Equals(Object obj)
            {
                // Check for null values and compare run-time types.
                if (obj == null || GetType() != obj.GetType())
                    return false;

                MyDict p = (MyDict)obj;
                return (key == p.key) && (value == p.value);
            }

            public override int GetHashCode()
            {
                return key.GetHashCode() ^ 37 + number.GetHashCode();
            }

            public string dKey
            {
                set { this.key = value; }
                get { return this.key; }
            }


            public string dValue
            {
                set { this.value = value; }
                get { return this.value; }
            }

            public int dnumber
            {
                set { this.number = value; }
                get { return this.number; }
            }
    }
}
